#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;
    QTcpSocket *m_t;

signals:
    void sendSocket(QTcpSocket *m_t);
    void sendPcnt(int cnt);
    void sendId(QString uid);
    void sendListOver();
    void sendMsg(QString msg);
    void sendFileText(QString data);
    void sendGroupMsg(QString from, QString msg);

protected:
    bool eventFilter(QObject *watched, QEvent *event);

private slots:
    void on_on_clicked();
};

#endif // WIDGET_H
